package com.shop.to;

import com.shop.pojo.pms.Pms_Sku_Info;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

////秒杀活动商品关联和sku表以及场次开始时间和结束时间的redis的to
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SeckillRedisTo implements Serializable {
    private Long id;
    private Long promotion_id;//活动id',
    private Long promotion_session_id;//活动场次id',
    private Long sku_id;//商品id',

    private String randomCode;//商品秒杀随机码

    private BigDecimal seckill_price;//秒杀价格'
    private Integer seckill_count;//秒杀总量',
    private Integer seckill_limit;//每人限购数量',
    private Integer seckill_sort;//排序',

    private Long startTime;//当前商品秒杀的开始时间

    private Long endTime;//当前商品秒杀的结束时间

    // sku详细信息
    private Pms_Sku_Info skuInfoVo;
}
